package com.icart.repositories;


import com.icart.entities.WoServbookitemEntity;
import org.springframework.context.annotation.Scope;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Scope("prototype")
public interface ServbookitemRepository extends BaseRepository<WoServbookitemEntity,Integer> {
    @Transactional
    @Query(nativeQuery = true,value = "insert into wo_servbookitem(bookseq,servitemid,cnt,packid,busiid) values(?1,?2,?3,?4,?5)")
    @Modifying(clearAutomatically = true)

    Integer insert(Long bookseq,Long servitemid, int cnt,Long packid,Long busiid);
}
